﻿//-----------------------------------------------------------------------
// <copyright company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Configuration;
using System.Net;
using System.Security.Principal;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;

namespace Reports
{
    public partial class Inadecuados : System.Web.UI.Page
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            ReportViewer1.ServerReport.ReportServerUrl = new Uri(String.Format("https://{0}/reportserver", ConfigurationManager.AppSettings["RSSERVER_NAME"]));
            ReportViewer1.ServerReport.ReportPath = ConfigurationManager.AppSettings["RSREPORT_PATH_INADECUADOS"];

            // Create a new instance of an IReportServerCredentials implementation.
            ReportViewer1.ServerReport.ReportServerCredentials = new Reports.ReportServerCredentials(
                ConfigurationManager.AppSettings["RSUSERNAME"],
                ConfigurationManager.AppSettings["RSPASSWORD"],
                ConfigurationManager.AppSettings["RSREPORT_PATH_INADECUADOS"]);
        }
    }
}
   